package com.uphone.magicleafteacher.vo;

public class LoginBean {
    /**
     * msg : 登录成功
     * code : 0
     * tokenInfo : {"teacherId":1,"expire":43200,"token":"491b5154-553f-4328-a2f4-cc843a8af6ca"}
     */

    private String msg;
    private int code;
    private TokenInfoBean tokenInfo;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public TokenInfoBean getTokenInfo() {
        return tokenInfo;
    }

    public void setTokenInfo(TokenInfoBean tokenInfo) {
        this.tokenInfo = tokenInfo;
    }

    @Override
    public String toString() {
        return "bean{" +
                "msg='" + msg + '\'' +
                ", code=" + code +
                ", tokenInfo=" + tokenInfo +
                '}';
    }

    public static class TokenInfoBean {
        /**
         * teacherId : 1
         * expire : 43200
         * token : 491b5154-553f-4328-a2f4-cc843a8af6ca
         */

        private int teacherId;
        private int expire;
        private String token;

        public int getTeacherId() {
            return teacherId;
        }

        public void setTeacherId(int teacherId) {
            this.teacherId = teacherId;
        }

        public int getExpire() {
            return expire;
        }

        public void setExpire(int expire) {
            this.expire = expire;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        @Override
        public String toString() {
            return "TokenInfoBean{" +
                    "teacherId=" + teacherId +
                    ", expire=" + expire +
                    ", token='" + token + '\'' +
                    '}';
        }
    }
}
